#include "stdint.h"
#include "driver/gpio.h"

typedef enum {
  TFT_RST,
  TFT_DC,
  TFT_CS,
  TFT_SCK,
  TFT_SDA,
  TFT_PIN_SUM
} pin_name_t;

extern uint8_t tft_pins[TFT_PIN_SUM];

void tft_pin_init();
void tft_spi_write(uint8_t data);
void tft_send_cmd(uint8_t cmd);
void tft_send_data(uint8_t data);
void set_pin_high(uint8_t pin);
void set_pin_low(uint8_t pin);